cc.Class({
  extends: cc.Component,
  properties: {
    onEnter: cc.Component.EventHandler,
    onStay: cc.Component.EventHandler,
    onExit: cc.Component.EventHandler
  },
  onCollisionEnter: function (t, e) {
    this.onEnter && this.onEnter.emit([t, e]);
  },
  onCollisionStay: function (t, e) {
    this.onStay && this.onStay.emit([t, e]);
  },
  onCollisionExit: function (t, e) {
    this.onExit && this.onExit.emit([t, e]);
  }
});